from DataPackage import DataPackage
from ReadAndWriteExcel import ReadAndWriteExcel

filePath = r'D:\Dot\RPA\SeventeenDay\Gitee网页爬取数据.xlsx'

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36',
}

data = DataPackage.dataList(DataPackage,headers,'https://gitee.com/customers')

ReadAndWriteExcel.write_excel(ReadAndWriteExcel,filePath,data)
print(ReadAndWriteExcel.read_excel(ReadAndWriteExcel,filePath))